<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterTableOrderCouponAddColumnSplite extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        return;
        for ($i = 0; $i <= 99; $i++) {
            $name = str_pad($i, 3, 0, STR_PAD_LEFT);
            Schema::connection("mysqlOrder")->table('order_coupon_' . $name, function (Blueprint $table) {
                $table->string('couponName', 32)->default('')->comment('优惠券名称');
                $table->unsignedInteger('costPrice')->default(0)->comment("优惠券成本价");
                $table->unsignedInteger('discount')->default(0)->comment('折扣力度');
            });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
